public class Solution190 {
    public int reverseBits(int n) {
        int ans=0;
        for (int i=0;i<32;i++){
            ans=ans|((n>>(31-i))&1)<<i;
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new Solution190().reverseBits(43261596));
    }
}
